﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.SalesManagement
{
    /// <summary>
    /// 采购单
    /// </summary>
    public class Procure
    {
        /// <summary>
        /// 采购单Id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string ProcureCode { get; set; }
        /// <summary>
        /// 采购日期
        /// </summary>
        public DateTime? ProcureTime { get; set; }
        /// <summary>
        /// 采购合同
        /// </summary>
        public int ContractId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public int SupplierId { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public string TaxRate { get; set; }
        /// <summary>
        /// 税费类型
        /// </summary>
        public string TaxRateType { get; set; }
        /// <summary>
        /// 未税金额
        /// </summary>
        public decimal SalesTax { get; set; }
        /// <summary>
        /// 含税金额
        /// </summary>
        public decimal Payment { get; set; }
        /// <summary>
        /// 逻辑删除标识符
        /// </summary>
        public bool? IsDelete { get; set; } = false;
    }
}